package projeto;

import java.io.*;
import java.util.*;

public class main {

	public static void main(String[] args) {
		List<Professor> cadastrados = new ArrayList<Professor>();
		
		
	}
	
	private static void Salvar(List<Professor> obj){
		FileOutputStream stream;
		ObjectOutputStream write;
		try {
			stream = new FileOutputStream("arquivo.bin");
			write = new ObjectOutputStream(stream);
			write.writeObject(obj);
			write.close();
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	private static Professor Cadastrar(String nome, String sala) {
		try {
			Professor prof = new Professor(nome,sala);
			return prof;
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}

	private static void addLista(Professor prof,List <Professor> lista){
		if(prof != null){
			lista.add(prof);
		}
	}
}
